﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Corp_new.aspx.cs" Inherits="Web.user.corp.Corp_new" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
   <style type="text/css" media="all">
        @import "/css/corp.css";
</style>
<style>
    ul li{ margin-top:8px}
</style>
</head>
<body>
    <form id="form1" runat="server">
    <div style="text-align:left; height:700px">
    <asp:DetailsView ID="dtvCorp" DefaultMode ="Insert" runat="server"  BorderWidth="0px"
            AutoGenerateRows="False" style="height: 509px" DataSourceID="odsCorpInfo" 
            oniteminserted="dtvCorp_ItemInserted" >
    <Fields>
        <asp:TemplateField>
            <InsertItemTemplate>
            
            	<div class="txt" style="text-align:left; margin:15px;">
				 <h3>添加商户- 填写基本资料</h3>
			  <p class="step1input"><label>商家名称：</label>
			  <asp:TextBox ID="btncorptitle" runat="server" class="ipt" Text='<%# Bind("Title") %>' style="width:236px;" maxlength="100"/>
            <span class="STYLE1">*</span></p>
			
    <div class="step2txt">
     <ul class="step2txt1">
     <li style="padding-bottom:10px;"><label>所在城市：</label>
      <asp:DropDownList ID="DropDownList3" runat="server" DataSourceID="sdsAreaList" 
                        DataTextField="AreaName" DataValueField="AreaID" 
                        SelectedValue='<%# Bind("AreaID") %>'>
                    </asp:DropDownList>
                    <asp:SqlDataSource ID="sdsAreaList" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                        SelectCommand="SELECT [AreaID], [AreaName], [Deep] FROM [Sys_Area] WHERE ([Deep] = @Deep) ORDER BY Sort">
                        <SelectParameters>
                            <asp:Parameter DefaultValue="1" Name="Deep" Type="Int32" />
                        </SelectParameters>
                    </asp:SqlDataSource>
                      <label style="margin-left:10px">商家类别：</label>
                  <asp:DropDownList ID="DropDownList2" runat="server" 
                        SelectedValue='<%# Bind("TypeID") %>'>
                        <asp:ListItem Value="1">餐饮美食</asp:ListItem>
                        <asp:ListItem Value="2">夜场酒吧</asp:ListItem>
                        <asp:ListItem Value="3">娱乐休闲</asp:ListItem>
                        <asp:ListItem Value="4">旅游度假</asp:ListItem>
                        <asp:ListItem Value="5">时尚购物</asp:ListItem>
                    </asp:DropDownList>
    </li>
        
<li id="Div_Special"> <label>关键词 ：</label>  <asp:TextBox ID="TextBox1" runat="server" class="ipt" Text='<%# Bind("Keys") %>' style="width:236px;" maxlength="100"/>
 多个推荐请用空格格开  </li>
 <li style="padding-bottom:10px;"><label>
                  人均消费：</label>
               <asp:TextBox ID="TextBox2" runat="server" class="ipt" Text='<%# Bind("Consume") %>' style="width:236px;" maxlength="100"/>
           
              </li>
            <li><label>详细地址：</label> <asp:TextBox ID="TextBox3" runat="server" class="ipt" Text='<%# Bind("Address") %>' style="width:236px;" maxlength="100"/></li>
           <li><label>服务电话：</label> <asp:TextBox ID="TextBox4" runat="server" class="ipt" Text='<%# Bind("Telphone") %>' style="width:236px;" maxlength="100"/></li>
           </ul>
			  </div>
				<div class="step2txt yspace step3txt">
					<ul class="step2txt1">
						<li><label>营业时间：</label> <asp:TextBox ID="TextBox5" runat="server" class="ipt" Text='<%# Bind("WorkTime") %>' style="width:236px;" maxlength="100"/> </li>
						<li><label>公交线路：</label> <asp:TextBox ID="TextBox6" runat="server" class="ipt" Text='<%# Bind("BusLine") %>' style="width:236px;" maxlength="100"/></li>
						<li><label>商家网址：</label><asp:TextBox ID="TextBox7" runat="server" class="ipt" Text='<%# Bind("Site") %>' style="width:236px;" maxlength="100"/></li>
                        <li style="background:none; padding:0;"><label>商家简介：</label><input type="hidden" runat="server"  name="Summary" id="Summary" value='<%# Bind("Summary") %>' /></p>
 &nbsp;<iframe src="../../Content/163editor/editor.html?id=dtvCorp_Summary" frameborder="0" scrolling="no" width="500" height="260"></iframe></li>
                </ul>
				</div>
				
				<div class="addsubmit" align="center">
				    <asp:Button ID="btnSubmit" runat="server" CommandName="insert" Text="确认添加" Width="130" Height="30px" />
                    </div>
			</div>
		
            </InsertItemTemplate>
        </asp:TemplateField>
    </Fields>
    
    </asp:DetailsView>
        <asp:ObjectDataSource ID="odsCorpInfo" runat="server" 
            DataObjectTypeName="Entity.CorpInfo" InsertMethod="Insert" 
            OldValuesParameterFormatString="original_{0}" SelectMethod="SelectSingle" 
            TypeName="Model.CorpInfoData" oninserting="odsCorpInfo_Inserting">
            <SelectParameters>
                <asp:QueryStringParameter DefaultValue="" Name="CorpID" QueryStringField="id" 
                    Type="Int32" />
            </SelectParameters>
        </asp:ObjectDataSource>
    
    </div>
    </form>
</body>
</html>
